<!--suppress ThymeleafVariablesResolveInspection -->
<!-- supperss ALL -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="list-item" th:each="questionList,questionState:${questionList}">
    <!-- 问题配图 -->
    <div class="list-item-top">
        <a target="_blank" class="type" th:href="@{answerType(id=questionList.typeId)}" th:text="${questionList.name}">洗牙</a>
        <a target="_blank" class="ansewer type" th:if="${questionList.answerNum < 1}" th:href="@{/askAnswerDetail(id=${questionList.id})}">未答</a>
        <a target="_blank" class="ansewer type" th:if="${questionList.answerNum >= 1}" th:href="@{/askAnswerDetail(id=${questionList.id})}">已答</a>
        <a target="_blank" class="place" th:href="@{/askAnswerDetail(id=${questionList.id})}">邀请您回答</a>
    </div>
    <div class="list-item-title">
        <a target="_blank" th:href="@{/askAnswerDetail(id=${questionList.id})}" th:text="${questionList.question}"></a>
    </div>

    <div class="list-item-content-text">
        <a th:href="@{/askAnswerDetail(id=${questionList.id})}" th:if="${questionList.content != null && questionList.answerNum < 1}" th:utext="'[问题背景]'+${questionList.content}"></a>
        <div class="text-ansower-user" th:if="${questionList.answerNum >= 1}">
            <a target="_blank" th:href="@{/userHomepage(id=${questionList.answerUserId})}" class="user-img-name">
                <img th:if="${questionList.userPhotoPath == null}" src="./yb_system_picture/user_Default.png">
                <img th:if="${questionList.userPhotoPath != null}" th:src="${questionList.userPhotoPath}">
                <span class="user-name" th:text="${questionList.answerNickname}"></span>
            </a>
            <p class="text-ansower-p">
                <span class="text-ansower-huida">[回答内容]</span>
            </p>
        </div>
        <p class="text-ansower-content" th:if="${questionList.answerNum >= 1}">
            <a target="_blank" th:href="@{/askAnswerDetail(id=${questionList.id})}" th:text="${questionList.introduce}"></a>
        </p>
    </div>

    <div class="list-item-info">
        <div class="list-item-info-left">
            <a target="_blank" th:href="@{/userHomepage(id=${questionList.userId})}" class="user-img-name">
                <img th:if="${questionList.userPhotoPath == null}" src="./yb_system_picture/user_Default.png">
                <img th:if="${questionList.userPhotoPath != null}" th:src="${questionList.userPhotoPath}">
                <span class="user-name" th:text="${questionList.nickname}"></span>
            </a>
            <span class="time"  th:text="${#dates.format(questionList.createTime, 'yyyy-MM-dd')}"></span>
            <a target="_blank" class="huida" th:href="@{/askAnswerDetail(id=${questionList.id})}" th:text="${questionList.answerNum+'个回答'}"></a>
            <span class="dotted"></span>
            <a target="_blank" class="liulan" th:href="@{/askAnswerDetail(id=${questionList.id})}" th:text="${questionList.readNum+'阅读'}"></a>
        </div>
        <div class="list-item-info-right">
            <a target="_blank" th:href="@{/askAnswerDetail(id=${questionList.id})}">
                <img src="./yb_system_picture/Write.png" alt="有贝口腔网">
                <span>我要回答</span>
            </a>
        </div>
    </div>
</div>